﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CustomerPanel/CustomerSite.Master"
AutoEventWireup="true" CodeBehind="Notification.aspx.cs" Inherits="FastTrackCabService.CustomerPanel.Notification" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
    <title>Fast Track | Notification</title>
    <link href="../Style/Supervisors.css" rel="stylesheet" type="text/css"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="margin: 1.5em auto;">
                <tr>
                    <td>
                        <h1 style="color: black">
                            Notifications
                        </h1>
                        <br/>
                        <asp:GridView ID="dgvNotification" CssClass="supervisors" runat="server" CellPadding="4"
                                      ForeColor="#333333" GridLines="None" AllowPaging="True" AutoGenerateColumns="False"
                                      OnPageIndexChanging="gvDrivers_OnPageIndexChanging" OnRowCommand="dgvNotification_RowCommand">
                            <AlternatingRowStyle BackColor="#F7F6F3" ForeColor="#284775"/>
                            <Columns>
                                <asp:BoundField DataField="BookingId" HeaderText="Id"/>
                                <asp:BoundField DataField="Type" HeaderText="Type"/>
                                <asp:BoundField DataField="OriginDateTime" HeaderText="Pickup Time"/>
                                <asp:BoundField DataField="OriginLocation.City" HeaderText="From"/>
                                <asp:BoundField DataField="Status" HeaderText="Status"/>
                                <asp:TemplateField HeaderText="Action">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ibEdit" ToolTip="Mark as seen" Width="30" ImageUrl="../Images/seen.png"
                                                         CommandName="Seen" CommandArgument='<%# Eval("BookingId") %>' runat="server"/>
                                        <asp:ImageButton ID="ibView" ToolTip="View full details" Width="25" PostBackUrl='<%#"BookingFullView.aspx?bookingId=" + Eval("BookingId") %>'
                                                         ImageUrl="../Images/full-view.png" runat="server">
                                        </asp:ImageButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataRowStyle CssClass="emptyDataRow"></EmptyDataRowStyle>
                            <EmptyDataTemplate>
                                <table class="supervisors" id="ContentPlaceHolder1_gvDrivers" style="border-collapse: collapse; color: #333333; width: 600px;">
                                    <tr style="background-color: #5D7B9D; color: White; font-weight: bold;">
                                        <th scope="col">
                                            Id
                                        </th>
                                        <th scope="col">
                                            Type
                                        </th>
                                        <th scope="col">
                                            Pickup Time
                                        </th>
                                        <th scope="col">
                                            From
                                        </th>
                                        <th scope="col">
                                            Status
                                        </th>
                                        <th scope="col">
                                            Action
                                        </th>
                                    </tr>
                                    <tr style="background-color: #F7F6F3; color: #333333;">
                                        <td colspan="6" style="padding: 0.5em;">
                                            There are no notifications.
                                        </td>
                                    </tr>
                                </table>
                            </EmptyDataTemplate>
                            <EditRowStyle BackColor="#999999"/>
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"/>
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White"/>
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"/>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333"/>
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333"/>
                            <SortedAscendingCellStyle BackColor="#E9E7E2"/>
                            <SortedAscendingHeaderStyle BackColor="#506C8C"/>
                            <SortedDescendingCellStyle BackColor="#FFFDF8"/>
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE"/>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>